package cn.dnui_xcz826.dnuifood_16110100826.iface;


import cn.dnui_xcz826.dnuifood_16110100826.listener.onRetrofitListener;
import okhttp3.MultipartBody;

/**
 * Created by neusoft on 2018/10/15.
 */

public interface UserIface {
    void login(String username,
               String userpass,
               onRetrofitListener listener);
    void register(String username,
                  String userpass,
                  String mobilenum,
                  String address,
                  String comment,
                  onRetrofitListener listener
    );


    void getUserById(String user_id, onRetrofitListener listener);

    void updateUserById(String user_id, String username, String userpass, String mobilenum, String address, onRetrofitListener listener);

    void updateAvatar(MultipartBody avatar, onRetrofitListener listener);
}
